package com.codegeek.project.slope.domain;

import com.codegeek.common.utils.ReplaceIllegalChar;
import com.codegeek.framework.aspectj.lang.annotation.Excel;
import com.codegeek.framework.web.domain.BaseEntity;
import lombok.Data;

/**
 * 声光报警器对象 slope_glare
 *
 * @author codegeek
 * @date 2020-02-17
 */
@Data
public class SlopeGlare extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 报警器ID
     */
    private Long glareId;

    /**
     * 报警器唯一设备号
     */
    @Excel(name = "报警器唯一设备号")
    private String imei;

    /**
     * 报警方式
     */
    @Excel(name = "报警方式")
    private Integer glareType;

    /**
     * 监测内容
     */
    @Excel(name = "监测内容")
    private String monitorDetail;

    /**
     * 声光报警器状态 0-关 1-开
     */
    @Excel(name = "保留字段")
    private String reserve;

//    /** 测点名称 */
//    @Excel(name = "测点名称")
//    private String pointName;
//
//
//    /** 所属点位ID */
//    @Excel(name = "所属点位ID")
//    private Long pointId;
//
//    /* 点位*/
//    private SlopePoint point;

    /**
     * 所属设备ID
     */
    @Excel(name = "所属设备ID")
    private Long deviceId;

    /**
     * 所属设备
     */
    private SlopeDevice device;

    public void setImei(String imei) {
        this.imei = new ReplaceIllegalChar().replace(imei);
    }

    public void setMonitorDetail(String monitorDetail) {
        this.monitorDetail = new ReplaceIllegalChar().replace(monitorDetail);
    }

    public void setReserve(String reserve) {
        this.reserve = new ReplaceIllegalChar().replace(reserve);
    }
}
